<?php
class GuildCompetitionMemberVo extends SzAbstractMySqlVo
{

    private $userId;
    private $epicyclePoint;
    private $epicycleFlags;
    private $nowTask;
    private $claimTaskNum;
    private $finishTaskNum;
    private $failTaskNum;
    private $createTime;
    private $updateTime;
    private $endTime;

    /**
     * Initialize GuildCompetitionMemberVo.
     *
     * @param $userId
     * @param $epicyclePoint
     * @param $epicycleFlags
     * @param $nowTask
     * @param $claimTaskNum
     * @param $finishTaskNum
     * @param $failTaskNum
     * @param $createTime
     * @param $updateTime
     * @param $endTime
     * @param boolean $isInsert default false, means for now this vo is initialized not for insert process
     * @return GuildCompetitionMemberVo
     */
    public function __construct($userId, $epicyclePoint, $epicycleFlags, $nowTask, $claimTaskNum, $finishTaskNum, $failTaskNum, $createTime, $updateTime, $endTime, $isInsert = false) {
        $this->userId = $userId;
        $this->epicyclePoint = $epicyclePoint;
        $this->epicycleFlags = $epicycleFlags;
        $this->nowTask = $nowTask;
        $this->claimTaskNum = $claimTaskNum;
        $this->finishTaskNum = $finishTaskNum;
        $this->failTaskNum = $failTaskNum;
        $this->createTime = $createTime;
        $this->updateTime = $updateTime;
        $this->endTime = $endTime;

        $this->isInsert = $isInsert;
        $this->voClassName = 'GuildCompetitionMemberVo';
        $this->ormName = 'GuildCompetitionMember';
    }

    /**
     * @see SzAbstractVo::toArray
     */
    public function toArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'epicyclePoint' => $this->getEpicyclePoint(),
            'epicycleFlags' => $this->getEpicycleFlags(),
            'nowTask' => $this->getNowTask(),
            'claimTaskNum' => $this->getClaimTaskNum(),
            'finishTaskNum' => $this->getFinishTaskNum(),
            'failTaskNum' => $this->getFailTaskNum(),
            'createTime' => $this->getCreateTime(),
            'updateTime' => $this->getUpdateTime(),
            'endTime' => $this->getEndTime(),
        );
    }

    /**
     * @see SzAbstractVo::toEntireArray
     */
    public function toEntireArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'epicyclePoint' => $this->getEpicyclePoint(),
            'epicycleFlags' => $this->getEpicycleFlags(),
            'nowTask' => $this->getNowTask(),
            'claimTaskNum' => $this->getClaimTaskNum(),
            'finishTaskNum' => $this->getFinishTaskNum(),
            'failTaskNum' => $this->getFailTaskNum(),
            'createTime' => $this->getCreateTime(),
            'updateTime' => $this->getUpdateTime(),
            'endTime' => $this->getEndTime(),
        );
    }

    /**
     * @see SzAbstractVo::toPureArray
     */
    public function toPureArray()
    {
        return array(
            $this->getUserId(),
            $this->getEpicyclePoint(),
            $this->getEpicycleFlags(),
            $this->getNowTask(),
            $this->getClaimTaskNum(),
            $this->getFinishTaskNum(),
            $this->getFailTaskNum(),
            $this->getCreateTime(),
            $this->getUpdateTime(),
            $this->getEndTime(),
        );
    }

    public function getUserId()
    {
        return $this->userId;
    }

    public function setUserId($val)
    {
        $this->saveColumnStatus(0, $this->userId);
        $this->userId = $val;
    }

    public function getEpicyclePoint()
    {
        return $this->epicyclePoint;
    }

    public function setEpicyclePoint($val)
    {
        $this->saveColumnStatus(1, $this->epicyclePoint);
        $this->epicyclePoint = $val;
    }

    public function getEpicycleFlags()
    {
        return $this->epicycleFlags;
    }

    public function setEpicycleFlags($val)
    {
        $this->saveColumnStatus(2, $this->epicycleFlags);
        $this->epicycleFlags = $val;
    }

    public function getNowTask()
    {
        return $this->nowTask;
    }

    public function setNowTask($val)
    {
        $this->saveColumnStatus(3, $this->nowTask);
        $this->nowTask = $val;
    }

    public function getClaimTaskNum()
    {
        return $this->claimTaskNum;
    }

    public function setClaimTaskNum($val)
    {
        $this->saveColumnStatus(4, $this->claimTaskNum);
        $this->claimTaskNum = $val;
    }

    public function getFinishTaskNum()
    {
        return $this->finishTaskNum;
    }

    public function setFinishTaskNum($val)
    {
        $this->saveColumnStatus(5, $this->finishTaskNum);
        $this->finishTaskNum = $val;
    }

    public function getFailTaskNum()
    {
        return $this->failTaskNum;
    }

    public function setFailTaskNum($val)
    {
        $this->saveColumnStatus(6, $this->failTaskNum);
        $this->failTaskNum = $val;
    }

    public function getCreateTime()
    {
        return $this->createTime;
    }

    public function setCreateTime($val)
    {
        $this->saveColumnStatus(7, $this->createTime);
        $this->createTime = $val;
    }

    public function getUpdateTime()
    {
        return $this->updateTime;
    }

    public function setUpdateTime($val)
    {
        $this->saveColumnStatus(8, $this->updateTime);
        $this->updateTime = $val;
    }

    public function getEndTime()
    {
        return $this->endTime;
    }

    public function setEndTime($val)
    {
        $this->saveColumnStatus(9, $this->endTime);
        $this->endTime = $val;
    }

}